/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import da.AccountJpaController;
import entities.Account;
import javax.ejb.Stateless;

/**
 *
 * @author QUY_THI
 */
@Stateless
public class AddAccount implements AddAccountLocal {

    public boolean addAccount(Account account) {
        boolean check = false;
        try {
            AccountJpaController controller = new AccountJpaController();
            controller.create(account);
            check = true;
        } catch (Exception e) {
            check = false;
        }
        return check;
    }
    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
}
